package com.anyou.mall.goo.goodsAudit.mapper;

import java.util.List;

import com.anyou.mall.goo.goodsAudit.domain.goodsAudit;
import com.anyou.mall.goo.goodsAudit.vo.*;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;

/**
 * 商品审核Mapper接口
 *
 * @author ruoyi
 * @date 2022-03-25
 */
public interface goodsAuditMapper extends BaseMapper<goodsAudit>
{
    /**
     * 查询商品审核
     *
     * @param goodsId 商品审核主键
     * @return 商品审核
     */
    public goodsAudit selectgoodsAuditByGoodsId(Long goodsId);

    /**
     * 查询商品审核列表
     *
     * @param goodsAudit 商品审核
     * @return 商品审核集合
     */
    public List<goodsAudit> selectgoodsAuditList(goodsAudit goodsAudit);

    /**
     * 新增商品审核
     *
     * @param goodsAudit 商品审核
     * @return 结果
     */
    public int insertgoodsAudit(goodsAudit goodsAudit);

    /**
     * 修改商品审核
     *
     * @param goodsAudit 商品审核
     * @return 结果
     */
    public int updategoodsAudit(goodsAudit goodsAudit);

    /**
     * 删除商品审核
     *
     * @param goodsId 商品审核主键
     * @return 结果
     */
    public int deletegoodsAuditByGoodsId(Long goodsId);

    /**
     * 批量删除商品审核
     *
     * @param goodsIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deletegoodsAuditByGoodsIds(Long[] goodsIds);

    /**
     * 查询规格
     * @param goodsId
     * @return
     */
    List<SelectSpecsInfoVo> selectSpecsInfo(Long goodsId);

    /**
     * 查询规格值
     * @param specsId
     * @return
     */
    List<SelectSpecsValueInfoVo> selectSpecsValueInfo(@Param("specsId") Long specsId, @Param("goodsId")  Long goodsId);

    /**
     * 查询sku组合信息
     * @param goodsId
     * @return
     */
    List<SelectSpecsSkuInfoVo> selectSpecsSkuInfo(Long goodsId);

    /**
     * 查询商品参数列表
     * @param goodsId
     * @return
     */
    List<SelectGoodsParameterVo> selectGoodsParameter(Long goodsId);

    /**
     * 查询商品明细
     * @param goodsId
     * @return
     */
    GoogdsDetailVo GoogdsDetail(Long goodsId);
}
